using System;

using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UITesting.WinControls;

namespace CodeStream.Testing.WebAutomation.InternetExplorer
{
    internal class UIDevWindowMenu : WinWindow
    {
        private readonly Lazy<UIDevDisableMenu> m_disableMenu;

        public UIDevWindowMenu(UITestControl searchLimitContainer)
            : base(searchLimitContainer)
        {
            SearchProperties[WinWindow.PropertyNames.AccessibleName] = "Context";

            m_disableMenu = new Lazy<UIDevDisableMenu>(new Func<UIDevDisableMenu>(() => new UIDevDisableMenu(this)));
        }

        public UIDevDisableMenu DisableMenu
        {
            get { return m_disableMenu.Value; }
        }
    }
}
